﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using Core.DatabaseHelpers;

namespace Core.Interfaces
{
    [Table("owned_building")]
    interface IOwnedBuilding : IDomainObject
    {
        [Browsable(false)]
        [Column("register_id", true,true,  "building",ColumnAttribute.KeyType.FillIn)]
        IBuilding Building { get; set; }

        [Browsable(false)]
        [Column("id_action", true, true, "action", ColumnAttribute.KeyType.FillIn)]
        IAction Action { get; set; }

        [Browsable(false)]
        [Column("customer_id", true, true, "customer")]
        ICustomer Customer { get; set; }

        [DisplayName("Дата продажи")]
        [Column("date_of_buy")]
        DateTime DayOfBuy { get; set; }

        [DisplayName("Конечная стоимость")]
        [Column("end_price")]
        int EndPrice { get; set; }
        
        [DisplayName("Регистрационный номер здания")]
        string RegId { get; }
        
        [DisplayName("Налог")]
        int Nalog { get; set; }

    }
}
